package com.bluesky.jwf.component;

import com.bluesky.javawebbrowser.domain.html.tags.Tag;

public class Label extends Component {

	private Tag tag;

	public String getText() {
		return tag.getBody();
	}

	public void setText(String text) {
		tag.setBody(text);
		tag.parseBody();
	}

	@Override
	public void init(String html) {

		super.init(html);

		tag = loadByJwfClass("Label");
		

	}

	@Override
	public void setId(String id) {
		super.setId(id);
		// tag.setName(getId() + "_textbox");
	}

}
